home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 14331 < prev    next >
Encoding:
Text File  |  1996-08-05  |  960 b   |  43 lines

  1. Path: news.nacm.com!usenet
  2. From: brandon@criterion.com (Brandon Wallace)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: #include"#include"thing.h""
  5. Date: 29 Mar 1996 21:43:10 GMT
  6. Organization: Nicholas|Applegate Capital Management, San Diego, CA
  7. Message-ID: <4jhlhe$4b0@news.nacm.com>
  8. References: <1996Mar23.150917.1@orion.alaska.edu>
  9. NNTP-Posting-Host: 204.255.80.4
  10. X-Newsreader: knews 0.9.2
  11. In-Reply-To: <1996Mar23.150917.1@orion.alaska.edu>
  12. To: pfennig@alaska.net
  13.  
  14. In article <1996Mar23.150917.1@orion.alaska.edu>,
  15.     axmmm@orion.alaska.edu writes:
  16.  
  17. Try this:
  18.  
  19. class Thing;
  20.  
  21. class ThingList
  22. {
  23.   Thing *head;
  24.   Thing *tail;
  25. };
  26.  
  27. class Thing
  28. {
  29.   // stuff...
  30.  
  31.   Thing *next;
  32.   Thing *prev;
  33.  
  34.   static ThingList allThings;
  35. };
  36. -- 
  37.                       Brandon Wallace
  38.             Nicholas | Applegate Capital Management
  39.                 mailto:bman@houston.nacm.com
  40.         http://www.houston.nacm.com/home-pages/brandon
  41.           "I live life face down in the fast lane."
  42.  
  43.